<?php
namespace app\commands;

use yii\console\Controller;
use app\models\User;
class ToolController extends Controller
{
    public function actionToken($token) {
        var_dump(User::findIdentityByAccessToken($token));
    }
}

?>